Goal:

Questions:

What does it mean to be correlated?

Background

Experiment

I created a simulation study to observe the co-evolutionary outcome of the newt-snake interaction with different genetic architectures (GAs) in a spatial setting. I hypothesized that we would see an interaction (co-evolutionary arms race) between newt and snake phenotype under some GA combinations when newts and snakes were evolving over geographical space. Each GA is paired with another GA creating 16 combinations.

GA1 experiment values:

Each GA combination and trial has its own msprime simulation, but the msprime file is shared between the 5 section and 7 section slim runs.

The data

## All cor, lit, and grid files exist!
## This program will now end!

Mean Phenotype Whole Simulation

Phenotype differences

Table of average Differences

##                    Group.1           x
## 1  1e-08_0.005_1e-08_0.005 -0.29984718
## 2   1e-08_0.005_1e-09_0.05 -3.44653016
## 3    1e-08_0.005_1e-10_0.5 -3.57621313
## 4      1e-08_0.005_1e-11_5 -2.08707622
## 5   1e-09_0.05_1e-08_0.005  2.60309532
## 6    1e-09_0.05_1e-09_0.05 -2.40006990
## 7     1e-09_0.05_1e-10_0.5 -1.85289777
## 8       1e-09_0.05_1e-11_5 -1.39021094
## 9    1e-10_0.5_1e-08_0.005  2.63499341
## 10    1e-10_0.5_1e-09_0.05 -0.08488893
## 11     1e-10_0.5_1e-10_0.5 -0.75361424
## 12       1e-10_0.5_1e-11_5 -0.68300489
## 13     1e-11_5_1e-08_0.005  1.22726213
## 14      1e-11_5_1e-09_0.05 -0.03017446
## 15       1e-11_5_1e-10_0.5 -0.88142756
## 16         1e-11_5_1e-11_5 -0.40647817

Connection between higher phenotype and population

Phenotype differences

Phenotype & Populationsize differences

Correlation

cor

Correlation Histograms

Plot 1

Plot 2

Plot 3

Plot 4

Plot 5

Plot 6

Plot 7

Plot 8

Plot 9

Plot 10

Correlation across time

Random 1

## [1] "pattern 1e-10_0.5_1e-10_0.5_1"
## [1] "Cor between average snake pheno and local cor 0.931347336161724"
## [1] "Cor between average newt pheno and local cor 0.966715791997969"
## [1] "Cor between average dif pheno and local cor -0.796067560815211"
## [1] "Cor between newt pheno and snake 0.942952676608367"

Random 2

## [1] "pattern 1e-09_0.05_1e-11_5_3"
## [1] "Cor between average snake pheno and local cor 0.769922097715855"
## [1] "Cor between average newt pheno and local cor 0.3422152494539"
## [1] "Cor between average dif pheno and local cor 0.759928618922996"
## [1] "Cor between newt pheno and snake 0.613422028176809"

Random 3

## [1] "pattern 1e-10_0.5_1e-08_0.005_1"
## [1] "Cor between average snake pheno and local cor -0.0223268918156944"
## [1] "Cor between average newt pheno and local cor -0.591939300613943"
## [1] "Cor between average dif pheno and local cor 0.0324558997111646"
## [1] "Cor between newt pheno and snake 0.0951508137190727"

What happens over time (looking at the beginning, middle, and late part of my simulations)

Pheno Beginning

Pheno Middle

Pheno End

Dif Beginning

Dif Middle

Dif End

Summary

Early-Sim Population Size Summary

Mid-Sim Population Size Summary

Late-Sim Population Size Summary

Early Difference Summary

Mid Difference Summary

Late Difference Summary

By Snake GA (Early)

By Snake GA (Mid)

By Snake GA (Late)

By Newt GA (Early)

By Newt GA (Mid)

By Newt GA (Late)

Heatmap

Population Size (Early)

Population Size (Mid)

Population Size (Late)

Phenotype (Early)

Phenotype (Mid)

Phenotype (Late)

What is up with the correlations

Early Simulation Correlation

Mean

## [1] 0.8463514

Max

## [1] 0.6621679

Min

## [1] 0.6947351

popsize

## [1] 0.4763849

Late Simulation Correlation

Mean

## [1] 0.7665938

Max

## [1] 0.6795915

Min

## [1] 0.7917928

Pop size

## [1] 0.4143043